Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Query Pipeline #14455

Merged
merged 2 commits into from
May 2, 2019
Merged

New Query Pipeline #14455

merged 2 commits into from
May 2, 2019

Conversation

smitpatel
Copy link
Member

@smitpatel smitpatel commented Jan 17, 2019

What works:
Non-collection queries
Sync/Async
InMemory/Sqlite/SqlServer
Method/Member translators
Spatial

What does not work:
Cosmos provider - Tests are skipped in normal run so will fix later
Collection queries - Includes/Correlated Subquery is not implemented yet
Subquery lifting - Was dependent on nav rewrite
A lot of small optimizations in expression tree/generated Sql
Null semantics
TPH
Broader list at #14630

Notes:
Old files are not deleted yet. (keeping them for reference for now)
Still target NS2.0
Class names/namespaces are not final.
Doc comments missing

@benmccallum
Copy link
Contributor

#14971 cross-linking so I can see over there easily when this PR is merged.

@smitpatel
Copy link
Member Author

This is ready for review.
I am in process of disabling failing tests (or fix them if easy win). Once this is in, it would be easier to work in smaller chunks

src/EFCore.Relational/Query/PipeLine/QuerySqlGenerator.cs Outdated Show resolved Hide resolved
var isLeftNull = sqlBinary.Left is SqlConstantExpression leftConstant && leftConstant.Value == null;
var isRightNull = sqlBinary.Right is SqlConstantExpression rightConstant && rightConstant.Value == null;

if (isLeftNull || isRightNull)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wont for for case where both values are null - those would be optimized at some point, so I guess its fine to leave this as is

Visit(
hasNullValue
? (Expression)new SqlUnaryExpression(
ExpressionType.Equal, inExpression.Item, inExpression.Type, inExpression.TypeMapping)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

creative re-use of existing assets ;)

@smitpatel
Copy link
Member Author

Addressed feedback and disabled all failing tests. Build should be passing.

What works:
Non-collection queries
Sync/Async
InMemory/Sqlite/SqlServer
Method/Member translators
Spatial

What does not work:
Cosmos provider - Tests are skipped in normal run so will fix later
Collection queries - Includes/Correlated Subquery is not implemented yet
Subquery lifting - Was dependent on nav rewrite
A lot of small optimizations in expression tree/generated Sql
Null semantics
TPH
Broader list at #14630

Notes:
Old files are not deleted yet. (keeping them for reference for now)
Still target NS2.0
Class names/namespaces are not final.
Doc comments missing
@maumar
Copy link
Contributor

maumar commented May 2, 2019

:shipit:
design looks good, we will clean it up and iron out the kinks in small chunks

@smitpatel smitpatel merged commit b69900c into master May 2, 2019
@ghost ghost deleted the smit/query branch May 2, 2019 18:38
using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore.Internal;

namespace Microsoft.EntityFrameworkCore.Query.Pipeline
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the folder is PipeLine and not Pipeline? 😭

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename went bad. I will correct it to please unicorns.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this was a major issue hurting my eyes as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants